#ifndef BCSTMAINTHREAD_H
#define BCSTMAINTHREAD_H

#include <QObject>
#include <QThread>
#include <QMutex>
#include <QMutexLocker>

class BcstMainThread : public QThread
{
    Q_OBJECT
public:
    explicit BcstMainThread(QObject *parent = nullptr);
    void enableThread();
    void disableThread();
    static QMutex g_mutex_flag_openRtBCST;
    static QMutex g_mutex_flag_closeRtBCST;

    static bool g_flag_openRtBCST;
    static bool g_flag_closeRtBCST;

protected:
    void run() override;

signals:

public slots:
    void handle_openRtBCST();
    void handle_closeRtBCST();

private:
    bool m_isRun{false};

};

#endif // BCSTMAINTHREAD_H
